import request from '@/utils/request.js'

// 注册接口
export const userRegisterService = ({ userName, password, repassword }) =>
  request.post('/register', { userName, password, repassword })

// 登录接口
export const userLoginService = ({ userName, password }) =>
  request.post('/login', { userName, password })

// 获取用户基本信息
export const userGetInfoService = () => request.get('/my/userinfo')

// 更新用户密码
export const userUpdatePasswordService = ({
  userName,
  password,
  newPassword
}) => request.post('/rePassword', { userName, password, newPassword })
